package ListManager;

import java.util.ArrayList;

import model.File;

public class FileListManager {

	private static FileListManager INSTANCE = new FileListManager();
	private ArrayList<File> fileList;
	
	private FileListManager(){
		fileList = new ArrayList<File>();
	}

	public static FileListManager getInstance()
	{	
		return INSTANCE;
	}

	public ArrayList<File> getFileList() {
		return fileList;
	}

	public void setFileList(ArrayList<File> fileList) {
		this.fileList = fileList;
	}
	
	public void clearFileList(){
		fileList.clear();
	}
	
	public void addItem(int pos, File file){
		fileList.add(pos, file);
	}
	
	public void removeItem(int pos){
		fileList.remove(pos);
	}
	
}
